<?php

namespace Modules\Admin\Http\Controllers\SystemError;


use Modules\Common\Models\SystemError;
use Modules\Common\Util\Api;

class Complete
{

    /**
     * @Route(path=api/admin/system-error/complete method=put)
     */
    public function index()
    {
        Api::validate(['ids' => 'array[integer]']);

        SystemError::whereIn('id', request('ids'))->update(['status' => 3]);

        return Api::success();
    }

}